﻿using System.Web.Mvc;
using Telerik.Web.Mvc;

namespace TelerikMvcClientApiRazor.Controllers
{
    public class GridController : BaseController
    {
        public ActionResult ClientSideSorting()
        {
            return View();
        }

        public ActionResult ShowHideColumns()
        {
            return View();
        }

        public ActionResult HideGroupColumns()
        {
            return View();
        }

        public ActionResult RowDoubleClick()
        {
            return View();
        }

        [GridAction]
        public ActionResult SelectProducts()
        {
            return Json(GetProducts(), JsonRequestBehavior.AllowGet);
        }
    }
}
